const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  publicPath:'./',
  //  前端处理跨域问题
  devServer: {
    port: 8888,   // 设置项目默认的端口号  /user/captcha
    proxy: {
      '/api': {
        target: 'http://localhost:9090/kgc',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
})
